<template>
  <div id="app">
    <el-container direction="vertical">
      <Header :menuList="menuList"></Header>
      <keep-alive>
        <router-view/>
      </keep-alive>
    </el-container>
  </div>
</template>

<script>
import Header from '@/components/Header.vue'

export default {
  data() {
    return {
      menuList: [
        {
          id: 0,
          path: "/",
          name: "首页"
        },
        {
          id: 1,
          path: "/about",
          name: "关于我"
        },
        // {
        //   id: 3,
        //   path: "/template1",
        //   name: "关于我"
        // }
      ]
    }
  },
  components: {
    Header
  },
  created() {
  },
  methods: {

  }
}
</script>

<style>

</style>
